﻿using IService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace AspectCoreDemo.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        private readonly ICustomService _service;

        public TestController(ICustomService service)
        {
            _service = service;
        }


        [HttpGet]
        public void GetMsg()
        {

            _service.Call();

            _service.GetResult(new Common.TestDto() { Id=Guid.NewGuid(),Age=18,Name="AAA",time=DateTime.Now});
        }

    }
}
